use uriinfo to build paths