safer version comparisons