add global varible support