edit URIs to match our requirements