rework relative URI resolving