add sudo write and buffers reading