now work with relative URIs