refine debug server