added -i to poweroff and reboot