basic statistics, encoder constructors with statistics
statistics was introduced, have some unit test crush