cleanup some logging