working on mac script