added ability to check for redirects