change to return req.pipe