working rpc send and receive