a working implementation of cjk_mm_ps_params