fixing config file reading