daemonization fix