more work on d3 + structure