add debug to eventing