added pretty-printing support for EventQueue