osx adaptation