follow redirects

adds support for redirects