fixes #1 using wait-and-notify
Merge pull request #2 from upwhere/master

fixes #1 using wait-and-notify