daemonize and debug