use url instead of uri