fix: take into account var_int for `addr`. move to parser.