    * @param {String} (name) The name of the user to find
    * @param {Function} (fn) The callback function
   ###
-  find: (name, fn, admin=false) =>
+  find: (name, admin=false, fn) =>
+    if typeof admin == "function" then fn = admin
     @current = null
     @list (err, usernames) =>
       if err

   * @param {Function} (fn) The callback function
  ###
  setup_directories: (user, fn) =>
    # fs.mkdir [@config.get('repository'), user.username].join('/'), () =>


module.exports = User

   * @param {Object} (obj) The object to add
   * @param {Function} (fn) The callback function
  ###
  save: (update_secret=false, fn) =>
    if typeof update_secret == "function" and (
      typeof fn == "undefined" or typeof fn == "null")
      fn = update_secret
      update_secret = false
    return fn(null, false) unless @current

    if typeof @current.name == "string"
