some d3drenderer refactorings