insertbuf skelecton
some changes