1st process should write to final output, not to tmp