tree_viewer now opens its own file handle.