Revert "add diagnostic function." -- doesn't seem to be terribly useful.

This reverts commit 806f89672ec93ec4ee9e7fb5b611cf7d7bf6f5a4.