cleaning up logging