remove the redirection detection stuff