work in progress. local caching