many bug fixes
asdf
Merge branch 'binary' of github.com:Floobits/flegmatic into binary
ported create buf function from st2.