use expvar in API service