replace depreacted buffer get set
fix buffer reference
Merge pull request #3 from finnp/replace-buffer-get-set

Replace depreacted buffer get set