simplify the version checking