revise version checking