attempt to handle redirects