incorporate proper 302 redirect handling