update to reading the cfg file