refine handler