added major version check 4 darwin