added sleep to let reboots take place