outfiles for train