changed readconfig