move constants to config