added missing WriteOptions