Added some buffer api