refine server end