added api client library
clean up client API library