\RequirePackage[automark]{scrlayer-scrpage}
\RequirePackage{scrhack}