yet another attempt to fix NameError from reading configuration