more work on d3-generated trees