code to copy data from broken instance