generate() doesnt print errors