before reboot