moved config init to config.c