added some factories to get trees and objects