added D3 stuff