aligned with Jan's PATCMG_cfg.py