trying to fclose would cause 'Precise data bus error', should be fixed now