added more debugging
Merge pull request #1188 from ZappoMan/bugfixes

added more debugging