legacy/diagnostics