version check improved