in this case we need to copy the `uri` from `scheme-end` to the end, or there's a better way?