Tree utils base