         page.journal.push({type: "fork", site: action.fork})
         delete action.fork
       page.journal.push(action)
-      console.log page
+      log page
       pagehandler.put(req.params[0], page, (e) ->
         if e then return res.e e
         res.send('ok')
-        console.log 'saved' if argv.debug
+        log 'saved'
       )
 
-    console.log(action) if argv.debug
+    log action
     # If the action is a fork, get the page from the remote server,
     # otherwise ask pagehandler for it.
     if action.fork

  )

  # Show all of the options a server is using.
  console.log argv if argv.debug

  # Swallow errors when in production.
  app.configure('production', ->

  ###### Meta Routes ######
  # Send an array of pages in the database via json
  app.get('/system/slugs.json', cors, (req, res) ->
    fs.readdir(argv.db, (e, files) ->
      if e then return res.e e
      res.send(files)
    )
  )

  app.get('/system/plugins.json', cors, (req, res) ->
    fs.readdir(path.join(argv.c, 'plugins'), (e, files) ->
      if e then return res.e e
      res.send(files)
    )
  )

  app.get('/system/sitemap.json', cors, (req, res) ->
    fs.readdir(argv.db, (e, files) ->
      if e then return res.e e
      sitemap = []
      # used to make sure all of the files are read 
      # and processesed in the site map before responding
