changed addrtype in utils.py