start using events in models