in the helper thread, separate the FILE * creation from the actual