tweak config logic