make reboots work in DEBUG mode