including clean up registry in copying a graph