added caching for ROOT