fix config file reader