implement config.c