with base models and Tree for relations