some changes in readConfigFile function