re-added readConfig