fix daemonization