osx script updated