added command to export nodes of a node sub-tree