daemonize is now working as expected