encode
+ add init methods to base view and model.
+ dependencies swc