daemonize and start threads