first steps towards making the cache work.