cleanup diagnostics