initial daemonizing work