moving small req.select to callback