definitions now automatically set the model based on the 'as' attribute
Fixed spelling