parse the uri correctly