redirects needed to be handled properly