add the cfg starting from raw