use threads for csv exports to enhance performance