             func=l_token.match(/f[a-zA-Z]+/)
             functionArgs=extractJsons(l_token)
             db.get('sites')[func] functionArgs[0],functionArgs[1], (err, objects) ->
-              log objects
-              for object in objects
-                log "------Object------"
-                log JSON.stringify(object.val(), null, 4)
-                log "------End Object------"
+              if typeIsArray objects
+                for object in objects
+                  log '------Site------'
+                  log JSON.stringify(object.val(), null, 4)
+                  log '------End Site------'
+              else
+                log '------Site------'
+                log JSON.stringify(objects.val(), null, 4)
+                log '------End Site------'
+              rl.prompt();
 
         when 'db.objects.find','db.objects.findOne','db.objects.findById'
           extractJsons l_token

        db.get('sites').find query, (err, sites) =>
         for site in sites
            log "_id: #{site.data._id}, slug:#{site.data.slug}"

    when 'get:objects_c'
      getDB (db) ->

      checkForDb=l_token.match(/db.+(?=\()/)+""
      log "Check for DB #{checkForDb}"
      
      #helper function to check for type is array (recommended from coffescript site for robust checking)
      typeIsArray = ( value ) =>
        value and
        typeof value is 'object' and
        value instanceof Array and
        typeof value.length is 'number' and
        typeof value.splice is 'function' and
        not ( value.propertyIsEnumerable 'length' )

      #helper function to extract jsons from a token
      extractJsons = (token)  =>
        count=0;
