refine url resolution (not used yet)