adjust to make macos happy