improved hierarchyviewer