get rid of own implementation of logger and use standard library, make it global