response class now handles redirects