adding reboot conditional