add multi writer support