using MODEL_TREE instead of generic statetree