adds caching for events, fixes #2