added support for querying versions to restclient