mgo prefix tree fixes. Needs caching...