script works on mac