adding diagnostic dumping