     ]
 
     fluxModules.forEach (fluxModule) ->
-      kd.singletons.reactor.registerStores fluxModule.stores
+      fluxModule.register kd.singletons.reactor
 
 
 # This function compares type of given account with global user

    kd.registerSingleton 'machineShareManager',       new MachineShareManager
    kd.registerSingleton 'reactor',                   new KodingFluxReactor { debug: yes }

    @registerFluxStores()

    shortcuts.addEventListeners()


        image.src = src


  registerFluxModules: ->

    fluxModules = [
      require 'activity/flux'
