added (untested) recursive population of models.