more fix on osx