small changes to ResourceCache