update: improve checking of config variables