reverted changes of reading individual files to mega for training