add resource model and spec