add methods to output data files