add tables to global and meanline regs
new module to deal with summary/meanlines/merging