add tracking of events