changed to a more RESTful API