add support for redirect responses