set scope in tree, factor out listener to pick up scope as walker moves around.