better version detection

ahead, current, update...