moved to new daemonize code