adding function on actions and params to build trees of their params
adding deep recursive validation of params