fixing sendbuf BUG & need to add STAT in senddata