Change trees api to use new parser.