this should be `isOSX = platform is darwin`