add an argoption to daemonize and then daemonize the function