pep8
separate daemonize code into separate module