modified daemonization process