rename stackIndex to parentIndex in the parser.  minor cleanup