new version checking code