make logging more consistent