add params for tx and rx