fix root main error and more d3