implemented address info encode/decode