renamed Buf to ByteBuf