Patch gscripts