 
   init = (cb) ->
     loadRoutes () ->
-      loadData () ->
-        cb() if cb?
+      cb() if cb?
 
 
   parseConfigLine = (line) ->


  loadData = (cb) ->
    ###
    (Re)loads data from data_path.
    ###
    try
      datafile = fs.readFileSync data_path, 'utf8'

      log.DEBUG "url #{parsedUrl.pathname} not matched"
      next()
      return
    loadData (err, data) ->
      if err?
        next httpError 500, err.message
      if not matched.jpath?
        send matched, {}, data, req, res, next
      else
        getData data, matched.jpath, (err, obj, context) ->
          if err?
            next httpError 500, err.message
            return
          switch matched.cond
            when ROUTE_COND_ONE
              if obj.length != 1
                log.DEBUG "route condition 'one' not satisfied"
                next()
                return
              obj = obj[0]
            when ROUTE_COND_MULTI
              if obj.length < 1
                log.DEBUG "route condition 'multi' not satisfied"
                next()
            when ROUTE_COND_ALL
            else
              obj = obj[0]
          send matched, obj, context, req, res, next

  init(cb)
  return processRequest
