 ### 
 
 $(() ->
-    uuid = require('misc').uuid
+    misc = require('misc')
+    uuid = misc.uuid
+    required = misc.required
+    defaults = misc.defaults
     
     active_cell = undefined
 

        if persistent_session == null
            salvus.conn.new_session
                limits: {}
                timeout: 10
                cb: (error, session) ->
                    console.log("session", session)
                    if error

        else
            cb(false, persistent_session)

    salvus_exec = (opts) ->
        opts = defaults opts,
            input: required
            cb: required
        console.log("a! - input=#{input}")
        session (error, s) ->
            if error
                console.log("ERROR GETTING SESSION")
                return
            s.execute_code
                code        : opts.input
                cb          : opts.cb
                preparse    : true
    
    
