started reorganizing cfg and scfg