now works on OSX