updates for swap and cache