working on local cache