adding event model and friends