 
 createGame = require 'voxel-engine'
 createPlugins = require 'voxel-plugins'
-createDebugUI = require 'voxel-debug'
-createPluginsUI = require 'voxel-plugins-ui'
-createBindingsUI = require 'kb-bindings-ui'
-
-createRegistry = require 'voxel-registry'
 
 # plugins (loaded by voxel-plugins; listed here for browserify)
+require 'voxel-registry'
 require 'voxel-workbench'
 require 'voxel-inventory-hotbar'
 require 'voxel-inventory-dialog'

      inventoryHotbar.refresh()
      console.log 'survival mode'

  # the GUI window (built-in toggle with 'H')
  # TODO: should these load as plugins? or not? who 'owns' the datgui object?
  gui = new datgui.GUI()
  debug = createDebugUI game, {gui:gui}
  debug.axis [0, 0, 0], 10
  pluginsUI = createPluginsUI game, {gui: gui}
  bindingsUI = createBindingsUI game, {gui: gui, kb: game.buttons}

  return game


require 'voxel-use'
require 'voxel-reach'
require 'voxel-land'

require 'voxel-debug'
require 'voxel-plugins-ui'
require 'kb-bindings-ui'

module.exports = () ->
  console.log 'voxpopuli starting'
