add support for URL redirects