move some const to global conf