add parallel writing