introduce new middleware module; drive out its initialization of the config object