         @appAddress, @cbhost, @socketioUrl, @stats,
         @id, @serverLogging, @optimizeConnection} = options
         @stopped = false
+        # some local stats
+        @eventSent = 0
+        @eventReceived = 0
+        @expectMet = 0
         @eventContext = new benchmarkConfig.EventContext({clientId:@id})
         return if @silent
         @eventQueue = new benchmarkConfig.EventQueue({

            return @_fatalErrorHandler("Timeout while bootstrap clientengine")
        
        if @expectStartTime? and time - @expectStartTime > @options.timeout
            @_fatalErrorHandler("Timeout while expecting #{@expect.getExpectingEventName()}")

    _createSocket : ()->
        @_initStartTs()


    _serverEventHandler : (eventName, args)->
        @stats.addCounter('serverEvent')
        @eventReceived++
        if @expect?
            expectResult = @expect.expect(eventName, args)
            if expectResult is 2
                now = Date.now()
                @stats.add('eventProcess', now - @expectStartTime)
                @expectMet++
                waitDuration = @expect.getWaitDuration()
                @expect = null
                @expectStartTime = null
