added sudo write command