try handling redirects