use daemonize switch