bassnode suggested changes for mac, also runs OK on linux so included