make send/recv mode works