querying api

querying api
extracted IClient interface