add catch for double redirects