added ability to turn autoGeneration on/off