allow passing the storage type into the storage methods.