updated osx example.