BUG: make it work on OSX 10.8