~ resolve_tree with fd (a faire)