fixes for D3 high averages and others