changed storeConfig to check for externalconfig file.