added lb and parser support for policy routing, added origin type setting, removed sameParseTree functions, some formatting