refine diag_send output