any change we can use `URI` here instead? `URL` is pretty tricky though has odd equals impls etc.