updated the item generator to be controlled by the configuration file