building a proper master tree for owners map