made _copy_node recursive so that if its parents are not present, they will be copied as well