refine url scheme