adding events to debugging