add command line functionality for daemonization