make it work (sorta) on OSX