add more statistics (and introduce api change)