updates, hopefully got sorting/tree building to work