moved HackingMode-constructioncode to constructor