improved version checker