implemented  reading from configreader