logging refinement