use palloc instead lua Buffers