adds support for a redirect object