receive_comms code