now works on mac os x
Merge pull request #4 from apla/patch-1

now works on mac os x