updated osx example