ter_cfg fixes