fixing up some issues with the configreader