adding event pretty-printer