working on logging, setting up for a service, modularity
updating for logging