updated api client