modified run_MC_cfg.py