fix bug
change to RESTful