gather stats
implement first variant for generating entry files