   # TODO what is best default refresh for job? And should it change from current use as days down to ms?
   job.args = JSON.stringify(job.args) if job.args? and typeof job.args isnt 'string' # store args as string so can handle multiple types
   imports = []
+  reprocs = []
   for i of job.processes
     # processes list can contain string name of function to run, or else assumed to be different args for the overall job function
     proc = if typeof job.processes[i] is 'string' and job.processes[i].indexOf('API.') is 0 then {function: job.processes[i]} else (if typeof job.processes[i] is 'object' and job.processes[i].function? then job.processes[i] else {function: job.function, args:job.processes[i]})

  job = job_job.get jobid
  job.user = uid if uid
  job.refresh = 0
  job._id = job_job.insert {new:true, user:job.user, processed: 0}
  Meteor.setTimeout (() -> API.job.create job), 2
  return job:job._id


      if checklength > maxallowedlength
        return 413
      else
        j = {new:true, user:this.userId}
        j._id = job_job.insert j # jobs created to provide immediate info to user
        j.processes = if this.request.body.processes then this.request.body.processes else this.request.body
        j.refresh ?= this.queryParams.refresh
