added first cast of PlotMapOutput incl new internal functions