updated sd_resume patch