trying to make scripts macosx friendly