moved api client to its own repo