make label generation optional