possible fix for redirects