added support for StorageProvider factory