[NTG-context] xtable headers and handlecsv loop