     # will fail with en error, since this is considered a critical
     # error. You should always use this method instead of manual.
     @lookupOrFail: (aliases...) ->
-        registry = @REGISTRY ?= {}; joined = aliases.join(", ")
-        notFound = "Could not found any of #{joined} scoped"
+        assert _.isObject registry = @REGISTRY ?= Object()
+        assert not _.isEmpty joined = aliases.join ", "
+        notFound = "Could not found any of #{joined} scopes"
         logger.info "Looking up any of this scopes: %s".grey, joined
         found = (v for own k, v of registry when k in aliases)
         throw new Error notFound unless found.length > 0

        assert _.isArray preserve = nconf.get "env:preserve"
        for directory in nconf.get("env:dirs") or new Array
            continue if directory in (preserve or Array())
            msg = "Wiping out the env directory at %s".yellow
            logger.info msg, directory.underline
            rmdirSyncRecursive directory, yes

    # Construct a new scope, using the supplied tag (a short name)
    # and a synopsis (short description of the scope) parameters.

            assert _.isNumber mode = nconf.get "env:mode"
            msg = "Environment mkdir at %s with 0%s mode".yellow
            logger.info msg, directory.underline, mode.toString 8
            mkdirSyncRecursive.call this, directory, mode

    # This method is responsible for shutting down the scope object.
    # This means stripping down all the necessary routines and other
