add support for parsing relative resource urls