threaded version
Merge pull request #1 from barbuza/master

threaded version