rm debugger, add event emits