generating config files to output dir