cleaned up logging support utilities