finanlized method of reading values from config files and iterating on stages.