adjust 'dict' used by wd_ for enclosing function