moved allocation buf before NEXTMESSAGE