actually parse the uri