addPrintHandler