added restful dispatch