added support for reboot