restapi client fix