update model

update model implementations, and update test restfull api