add ability to set a logger and testing