add redirect support