add param to create_from_tree