update dispatch for restful