add diagnostics