phi7 into files working