changed _check_tree() to validate_tree()