for yaml config, set configs as a variable to Generator class
change function to class