change addr string to addr struct in Receiver{}