added relational models, need a better solution to this.