refine debug info