refactor URI parsing