sets hardened mode