mac compatibility for some scripts