updated osx script