updated tree and node base classes