   addPlugin: (hostname, plugin_name, opts) ->
     hostname = helpers.getHostname hostname
 
-    if not @getHostname hostname
+    if not _.size opts 
+      opts = {}
+
+    if @getPlugin hostname, plugin_name
       false
     else
       @config[hostname].push 

    platform = if process.platform is 'win32' then 'USERPROFILE' else 'HOME'
    @file = path.join process.env[platform], '.snail'
    @open()

  # Return contents of ~/.snail or return an empty object {}
  open: ->

      if not @getPlugin hostname, plugin_name
        false
      else 
        _.each opts, (val, key) ->
          @config[hostname][plugin]['opts'][key] = val

