private boolean add_datapoint_plot(Second now, int col, String colheader, Double value) {
        try {
            ((TimeSeries) (Stats.get(col))).add(now, value);
            return true;
        } catch (SeriesException se) {
            // insert not possible
            // check if column can be update
            StatConfig statconfig = ((OSParser) mysar.myparser).get_OSConfig().getStat(mysar.myparser.getCurrentStat());
            if (statconfig != null) {
                if (statconfig.canDuplicateTime()) {
                    Number oldval = ((TimeSeries) (Stats.get(col))).getValue(now);
                    Double tempval;
                    if (oldval == null) {
                        return false;
                    }
                    ColumnConfig colconfig = GlobalOptions.getColumnConfig(colheader);
                    if ( colconfig == null ) {
                        return false;
                    }
                    if (colconfig.getType() == 1) {
                        tempval = new Double((oldval.doubleValue() + value) / 2);
                    } else if (colconfig.getType() == 2) {
                        tempval = new Double(oldval.doubleValue() + value);
                    } else {
                        return false;
                    }

                    try {
                        ((TimeSeries) (Stats.get(col))).update(now, tempval);
                        return true;
                    } catch (SeriesException se2) {
                        return false;
                    }
                }
            }
            return false;
        }

    }