add fragment output via file IO