added reboot/halt functions