added basic URI parsing