update events and agents definitions