set write options metadata