transfer some code to fancypants
every params in req.params