started working on readconfig