add support for relative urls
support for empty name_selectors