use ->req, and params->to_hash