last event in script is now added to the trace