       createId = require 'hat'
       if clientId?
         if obtaining[clientId]
-          @once "ready.#{clientId}", (guest)-> console.log 'finally got', clientId; callback null, guest
+          @once "ready.#{clientId}", (guest)-> callback null, guest
           return
         obtaining[clientId] = yes
       {delegate} = client?.connection


  error =(err)->
    message:
      if 'string' is typeof err
        err
      else
        err.message

  {secure, dash} = require 'bongo'


        avatar      : String
        status      : String

  @resetAllGuests =(count=1e4)->
    @drop ->
      queue = [0...count].map (guestId)->->
        guest = new JGuest {guestId}
        guest.save (err)->
          console.trace()
          console.log 'saved a guest!'
          queue.fin err
      dash queue, ->
        console.log 'done restting guests!'

  @resetAllGuests$ =(client)->
    console.trace()
    {delegate} = client.connection
    @resetAllGuests() if delegate.can('reset guests')

  @recycle =(guest, callback=->) ->
    guestId = if guest instanceof @ then guest.getId() else guest
