         message: err.message
         stack: err.stack
 
-send_error_socket = (err) ->
+sendErrorSocket = (err) ->
     console.log "Sending error through socket"
     console.log err.stack
     #compound.io.sockets.emit 'installerror', err.stack
 
-mark_broken = (res, app, err) ->
+markBroken = (res, app, err) ->
     console.log "Marking app #{app.name} as broken because"
     console.log err.stack
 

    app.password = null
    app.errormsg = err.message
    app.save (saveErr) ->
        return send_error res, saveErr if saveErr

        res.send
            app: app

                        if err then console.log err.stack
                        else console.info 'icon attached'

                    return sendError res, err if err

                    manager.resetProxy (err) ->
                        return markBroken res, req.application, err if err

                        res.send
                            success: true
