modified some gcm scripts