twaek for mac pathToLocal if not none