more precise version check