follow redirects and set max redirects