add statistics API