update on handler_output to fix sendmail