inject the configreader too