add switch to protected mode.