try and fix up logging