the lib could also report this in the callback after optimizations.