starting to implement storage of events