read/write buffer && log