add buffer
Merge pull request #1 from kesla/master

add buffer