add version check to client & server