take into account redirects in wrappers