         return (done) ->
           globalOptions.pre.apply @, [] if globalOptions?.pre?
           options.pre.apply @, [] if options?.pre?
-          Sync ->
+          sync ->
             Fiber.current.soda_sync_browser = globalOptions?.with?()
             cb.apply globalOptions?.with?(), []
             done() if done?

  include: soda.commands.concat ['session']

patch = (browser, options) ->
  MakeSync browser, buildOptions
  
  # necessary cause soda is doing weird stuff in the 'chain' getter 
  browser.queue = null
  
  sync = (cb) ->
    if cb?
      Sync ->
        Fiber.current.soda_sync_browser = browser
        cb.apply browser , []
  {browser,sync}

sodaSync =
  # similar to soda

soda = require("soda")
{makeSync,sync} = require 'make-sync'

buildOptions = 
  mode: 'sync'
