fix to support macos