updated mg caching