maintain method across redirects