added iDensity handling in plots and filedumps