beefed up rest api, can now manipulate models