allow for running as a service