update model, add REST stubs