mad tokenize to file and updated predictor