flag that dictates whether to produce dom or not