                 switch m[1]
                     when "token"
                         @token = m[2]
-                        @make_tempfile()
                     when "data"
                         @datasize = parseInt(m[2],10)
                         @should_parse_data = true
+                    when "display-name"
+                        @displayname = m[2]
+                        @remoteAddress = @displayname.split(":")[0]
+                        @basename = @displayname.split(":")[1]
+                        @make_tempfile()
 
 
     open_in_atom: ->

        @socket.write cmd+"\n"

    save: ->
        console.log "[ratom] saving #{path.basename @tempfile} to #{@remoteAddress}"
        message.display "Saving #{path.basename @tempfile} to #{@remoteAddress}", 2000
        @send "save"

        @send ""

    close: ->
        @online = false
        @send "close"
        @send ""
        @socket.end()
