 events = require 'events'
 
 ACTIONS = ['configured', 'booted', 'started', 'running', 'shutdown', 'stopped']
-
-## EXPERIMENTAL identity based lookups cache -> nero
-## it is working! still deactivated by default. to use
-## put USELOOKUPSCACHE: true into the base config object
-USELOOKUPSCACHE = false
-LOOKUPSCACHE = {}
 
 module.exports = 
 


            @_emitter = @_createEmitter config
            
            # --> EXPERIMENTAL identity based lookups cache -> nero
            
            if config.USELOOKUPSCACHE
                USELOOKUPSCACHE = true
                @logger.debug 'init lookups cache'
            
            # <-- EXPERIMENTAL 
            
            @children = new floyd.data.MappedCollection()

            @_changeStatus 'configured'

                done: (err)=>
                    
                    if !__first && ( __first = true )
                        if level is 'stop' || level is 'destroy'
                            @_changeStatus? status
                            done?()
                        
                        else
                            done?()
                            @_changeStatus? status
                                            
                    else if err
                        done? err
                    
