           v = if kv[1] then kv[1] else ""
           if v.indexOf('|') > -1
             v = v.split("|")
-          obj = {}
-          obj[k] = v
-          newQueries.push obj
+          # obj = {}
+          # obj[k] = v
+          newQueries[k] = v
         newParam.pop()
         newParam.push last.split('?')[0]
         q = {"queries":newQueries}
         newParam.push q
+
         if not test
           @._params.params = @_getCastedParams(rule, newParam.slice(0))
-          @._params.queries = q
+          @._params.queries = newQueries
       else
         if not test
           @._params.params = @_getCastedParams(rule, newParam)

    return

  #処理を一時停止する
  resume:()->
    if @._beforeDeffer?
      @._beforeDeffer.resume()
    @.isResume = true
    @._dispatcher.dispatchEvent( new KazitoriEvent(KazitoriEvent.RESUME, @.fragment, @.lastFragment))
    return

  #処理を再開する
  restart:()->
    if @._beforeDeffer?
      @._beforeDeffer.restart()
    @.isResume = false
    @[@._processStep.status](@._processStep.args)
    @._dispatcher.dispatchEvent( new KazitoriEvent(KazitoriEvent.RESTART, @.fragment, @.lastFragment))
    return
    
  registerHandler:(rule, name, isBefore, callback )->

KazitoriEvent.STOP = 'stop'

#一時停止
KazitoriEvent.SUSPEND = 'SUSPEND'

#再開
KazitoriEvent.RESUME = 'resume'

#一番最初のアクセスがあった
KazitoriEvent.FIRST_REQUEST = 'first_request'
