writes for Map[String, Either[CountDownLatch, Int]]