   }
 
   # right-click to place block (etc.)
-  plugins.preload 'use', {}
+  plugins.preload 'voxel-use', {}
 
   # handles 'break' event from voxel-mine (left-click hold breaks blocks), collects block and adds to inventory
-  plugins.preload 'harvest', {
+  plugins.preload 'voxel-harvest', {
     playerInventory:playerInventory,
     block2ItemPile: (blockName) ->
       # TODO: use registry? more data-driven

    [undefined, 'stick', undefined]], new ItemPile('pickaxeDiamond', 1))


  avatar = plugins.all.player
  avatar.pov('first');
  avatar.possess()
  home(avatar)

  # load textures after all plugins loaded (since they may add their own)
  game.materials.load plugins.all.registry.getBlockPropsAll 'texture'
  global.InventoryWindow_defaultGetTexture = (itemPile) => plugins.all.registry.getItemPileTexture(itemPile)

  plugins.disable 'fly'

  # one of everything, please..
  creativeInventoryArray = []
  for props in plugins.all.registry.blockProps
    creativeInventoryArray.push(new ItemPile(props.name, Infinity)) if props.name?

  survivalInventoryArray = []

  game.buttons.down.on 'pov', () -> avatar.toggle() # TODO: disable/re-enable voxel-walk in 1st/3rd person?
  game.buttons.down.on 'vr', () -> plugins.toggle 'oculus'
  game.buttons.down.on 'home', () -> home(avatar)
  game.buttons.down.on 'inventory', () -> plugins.all['inventory-dialog']?.toggle()
  inventoryHotbar = plugins.all['inventory-hotbar']
  game.buttons.down.on 'gamemode', () ->
    # TODO: add gamemode event? for plugins to handle instead of us
    if game.mode == 'survival'
      game.mode = 'creative'
      plugins.enable 'fly'
      plugins.all.mine?.instaMine = true
      survivalInventoryArray = inventoryHotbar.inventory.array
      inventoryHotbar.inventory.array = creativeInventoryArray
      inventoryHotbar.refresh()
      console.log 'creative mode'
    else
      game.mode = 'survival'
      plugins.disable 'fly'
      plugins.all.mine?.instaMine = false
      inventoryHotbar.inventory.array = survivalInventoryArray
      inventoryHotbar.refresh()
      console.log 'survival mode'


  # show origin 
  plugins.all.debug?.axis [0, 0, 0], 10

  return game



  # the GUI window (built-in toggle with 'H')
  gui = new datgui.GUI()
  plugins.preload 'voxel-debug', {gui:gui}
  plugins.preload 'voxel-plugins-ui', {gui:gui}
  plugins.preload 'kb-bindings-ui', {gui:gui, kb:game.buttons}


  plugins.loadOrderly()
  ## plugins are loaded from here on out ##

  # recipes
  recipes = plugins.get('craftingrecipes')
  recipes.thesaurus.registerName 'wood.log', new ItemPile('logOak')
  recipes.thesaurus.registerName 'wood.log', new ItemPile('logBirch')
  recipes.thesaurus.registerName 'wood.plank', new ItemPile('plankOak')
