replaced cfg data structure