send and receive script