add an extension object to control tree traversal