building out model relationships and references