moving event_store into models