implemented config reader