finished helpers and RESTful routes