several fixes and performance improvements
Merge pull request #1190 from devoncarew/devoncarew_git_fix_logging

several fixes and performance improvements