fix config reader and print