(refactor) refactored token map to accept Node enum versus struct