added caching for video