moved file dump in phantom to handleFinished