     
   import_dict: (dict) ->
     for key, value of dict
-      value = @_from_dict(value) if (key == AUTHORITY)
+      value = @_from_dict(value) if key == AUTHORITY
       value = @_import_children(value) if key == CHILDREN
       value = @rx().array(value) if _.isArray(value)
       @put(key, value)
+    @export_events()
     this
 
   _spawn_world: (label) ->

    assert _.isFunction(closure), "#{key}: #{closure} is not a function"
    closure(@, args)
    
  # TODO: refactor import_dict methods somewhere
  _import_children: (children) ->
    result = @rx().array()

LABEL = "_LABEL"
CHILDREN = "_CHILDREN"
AUTHORITY = "_AUTHORITY"
EXPORTS = "_EXPORTS"
INDEX = "_INDEX"
CSS = "_CSS"

