enhance loadConfigFile method, allow to pass the new file format to load config