add get_params func
Merge branch 'master', remote-tracking branch 'origin'