read conf in a loop, still needs proper instantiation