added data injection and storage logic to the store