stats: improvements for generated files