add support for URL redirects and multiple providers