fixing restful methods