new and improved tree helper and its tests
server-side total conversion in progress