implemented devmode toggling and security level setting