setup diagnostics