add parent index, use  lex scoping to find vars