switching to write_daemon