now works on osx and debian