remove unnecessary redirects