added a config reader