skeleton to receive and send messages