add additional debug output
Merge pull request #1101 from achamely/master

Additional debug output