add better logging for CDH checking. Fixes #583