split up data into files