adding script to do patching