fixed SDK according to REST API changes