add some diagnostics