unify diag => mydiag to avoid inconsistencies that might arise