added setErasureCoding function