daemonizing fixes