manage roots in merge