paging added, cache revised