fixed issues with trees and meta data