move 'delete root_node' where it was before merging master. cleanup