- moved daemonize in its own file