modified spy to speed up tracing by making arg capture optional and added expand and collapse all option to the tree