Revert "remove config stuff that did not work"

This reverts commit df7b2ccd08f2f215a185e568298ef3ae39559297.