fix relay example
Segregate events from state for now

events is appropriate to refer to from state, but the circular imports
are messy. Just keep them separate for now