added a check and error message for server version mismatch.