           fn(data)
       return @
     
-    watchAction: (actionName, fn) ->
+    watchAction: (eventName, fn) ->
       for name, action of @actions
-        action.on actionName, (data) ->
+        action.on eventName, (data) ->
           fn(data)
       return @
 

      @fn(args); @

  Stack : class Stack extends EventEmitter
    constructor: (options) ->
      {@name} = options
      @name ?= uuid.v4()
      @actions = []; @

    after: (timeInterval, fn) ->
      setTimeout =>
        fn(@)
      , timeInterval; 
      @emit 'robot-after', @; @

    do: (fn) ->
      fn(@); 
      @emit 'robot-do', @; @

    watchSensor: (eventName, fn) ->
      for name, sensor of @sensors
