added more logging
Merge pull request #1159 from ZappoMan/bugfixes

added more logging