use directory to reallocate the config files