rejiggering for RESTful endpoints