adds xpath matching to object trees
