debug version... bug in RX_BUF_SIZE not big enough