modified the script to use the new patches