fixed the bug the external reference definiton file cannot be loaded
allowed predefined references from file