             bufferedRecords: _getBufferedRecords hub
         else
           rsp.result = 'ERROR'
-          story.warn LOG_SRC, "User '#{login}' authentication failed"
+          process.nextTick -> mainStory.warn LOG_SRC, "User '#{login}' authentication failed"
         _socketTxMsg socket, rsp
     ## when 'BUFFERED_RECORDS_REQUEST'
     ##   rsp = {type: 'BUFFERED_RECORDS_RESPONSE'}

        rsp = {type: 'LOGIN_RESPONSE'}
        if fAuthValid
          rsp.result = 'SUCCESS'
          story.info LOG_SRC, "User '#{login}' authenticated successfully"
          socket.sbAuthenticated = true
          socket.join 'AUTHENTICATED'
          rsp.data = 


_socketRxMsg = (socket, msg) ->
  {type, data} = msg
  {mainStory, hub} = socket.sbConfig
  switch type
    when 'LOGIN_REQUEST'
      {authenticate} = socket.sbConfig
