working on cache object and api controllers