enabling secure mode