add method to send and receive objects