moved cfg_generator.py