update restful handling