          for site in sites
             log "_id: #{site.data._id}, slug:#{site.data.slug}"
          rl.prompt();
-
+    ### May be added later still tbd on implementation
     when 'get:objects_c'
       getDB (db) ->
         db.get('objects').find {collection: l_args[0]}, (err, objects) ->

          log JSON.stringify(object.val(), null, 4)
          log "------End Object------"
        rl.prompt();


    when 'open:site'
      getDB (db) =>
        db.get('sites').find {_id: l_args[0]}, (err, sites) =>
          @site_context={
            type:"sites"
            site:sites[0]
            id:sites[0].data._id
            prompt:"#{l_args[0]}"
          }

          rl.setPrompt "#{@prompt}>"
          rl.prompt();
    when 'open:object'
      getDB (db) =>
        db.get('objects').find {_id: l_args[0]}, (err, objects) =>
          @site_context={
            type:"objects"
            site:objects[0]
            id:objects[0].data._id
            prompt:"#{l_args[0]}"
          }

          rl.setPrompt "#{@prompt}>"
          rl.prompt();

    when 'help' or 'docs'
      log USAGE_SHELL

    else
      checkForDb=l_token.match(/db.+(?=\()/)+""

  db.objects.findById
"""

USAGE_SHELL_CONTEXT="""
  SITE/OBJECT_TOOLS
  show                            Dump site information
  add/set                         Sets data key:value
  get                             gets a subset of the site information
  exit                            drops out of site context
  """
executeContextCommand =(l_token,l_command,l_args) =>
  @variables="" unless @variables
  switch l_command
    when 'show'
      getDB (db) =>
        db.cache = false
        db.get(@shell_context.type).find {_id: @shell_context.id}, (err, sites) =>
          log JSON.stringify(sites[0].val(),null,3)
          rl.prompt();

    when 'get'
      getDB (db) =>
        db.get(@shell_context.type).find {_id: @shell_context.id}, (err, sites) =>
          log JSON.stringify(sites[0].get(l_args[0]).val(),null,3)
          rl.prompt();
    
    when 'set' or 'add' #currently does not work
      getDB (db) => 
        db.get(shell_context.type).findOne {_id: @shell_context.id}, (err, site) =>
          throw err if err
          site.get(arg[0]).set arg[1], (err) =>
            throw err if err
            rl.prompt();
    when 'help'
      log USAGE_SHELL_CONTEXT
      rl.prompt()

    when 'exit'
      @shell_context = undefined
      rl.setPrompt('>')
      rl.prompt()
    else
      rl.prompt()

executeCommand = (l_token,l_command,l_args) =>
  if @shell_context
    executeContextCommand l_token,l_command,l_args
    return

  switch l_command
