changes for rest api