working on 121, set global vars + rm ps_params