rename prepare to recovery and refactor new instanceinfo