created a debugmessage event class