fix config reader