tested on osx 10.8