ongoing config.c cleanup: getid()