add debug output to validator
this fixes #182