construct the basic client based on Kiva documentation