add read/write buffer methods