add server version check