add minor debug code to test receive_packet()