completed reformatting of sd_resume patch