don't write_file when rebooting