optimize command for reboot