use a better version check