minor changes to Cache