tree-memory source as example for tree sources