move some global variables to custom config