copy node now checks if node already exists