finished event repo. TODO: fix event creation