bugfix surrounding daemonization