move req.attach to app.js