move res.redirect to "lib/response"