cleaning up in config.c