add treebaseclass and access exception base class