fix outer lookup and parsing of ints