fix up logging