clean up redirect a bit