moved can_reboot function to switch class