optimize version check