add rest model and modify exist model