only add debug event on main character