added a logging module. probably better to use that than a factory.