fix RESTful issues