Thread related fixes
Bump tpo 0.9.1
Merge pull request #25 from 6wunderkinder/lots-of-fixes

Thread related fixes