added a load method to cache