added unused functions from tree viewer v1