             attributes[key] = value
 
         # console.log 'creating class instance', name, attributes
-        parent = new lz[ext](instanceel, attributes)
-        # console.log 'created instance', name, ext, parent
+        parent = new lz[extend](instanceel, attributes)
+        # console.log 'created instance', name, extend, parent
 
         return if not (viewel = parent.sprite?.jqel[0])
 

  typemappings = 
    number: parseFloat

  class Node extends Module
    @include Events


      CoffeeScript.compile(js, bare: true) if js

  compileScript = (script='', args=[], compiler) ->
    # console.log 'compileScript', compiler, script, args
    if compiler of compilermappings
      # console.log 'compiling coffee-script', compiler, script
      script = compilermappings[compiler](script)
