simplified config reader, moved import of configreader into main