refine url write