         console.log msg
         if opts.watchJs
           notify 'styles', msg
-        if cb
-          cb()
+
+        callback?()
 
       if opts.watchJs and not watchingKd
         watchingKd = true
         w = chokidar.watch kdCssFile, persistent: yes
-        w.on 'change', ->
-          copyKd()
-
-
-    styl = (x, globs) ->
+        w.on 'change', copyKd
+
+
+    styl = (manifest, globs) ->
       pending += 1
 
       opts_ =

    if opts.watchJs
      b = bant.watch opts_
      b.on 'update', (ids) ->
        ids.forEach (x) ->
          console.log 'updated ' + x
        bundle()
    else
      b = bant opts_

              if e is 'modified' or e is 'deleted'
                console.log e + ' ' + file
                start = Date.now()
                styl manifest, globs


    init = =>
      fn = ->
        manifests.forEach (manifest) ->
          return  unless Array.isArray manifest.styles
          bundle manifest
      @on '_updated-sprites', -> fn()
      copyKd -> fn()

