add diagnostic messages