implemented activity stream and smart caching.