needed another darwin-only if block