need to work on writing content to the cache