update config for global variables
use SCScript instead of sc.SCScript