rebuild the store and store's API