better url resolver