made dev detect
make sure to close file descriptors and reboot on failure