update scripts and patches