making things restful