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

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

    ##     rsp.error = 'AUTH_REQUIRED'
    ##   _socketTxMsg socket, rsp
    else
      process.nextTick -> mainStory.warn LOG_SRC, "Unknown message type '#{type}'"
  return

_socketTxMsg = (socket, msg) -> socket.emit 'MSG', msg
