added metadata to writes