updates to rest api