macos fixes