adding logic for sends vs receives