set maxRedirects to 20