changes to incorporate tree rendering, this is the first working version, a
checkpoint for the next update that needs to account for multiple roots in the tree