small diagnostics fix