added restful feature