move some global variables into custom config