split different "tables" into files