fix deprecated StoreFactory