tried to add get function to ResourceCache