small changes to .osx script