re-writing ccfg