- added some primitive implementation for internal/external reference materials