refine url setting