simplify version checking