continuing work on removing global CONFIG and saving in configuration file instead.