refactor to enable included/embedded json view of models