internal statistics: internal stats have been moved out to separate header file
internal statistics: in json dump internal stats names are preceded with double underscore "__"