anchor.diff:              io:format("~nsend_req: ~p~n", [Else]),
               Else
       end.
  +
  +get_port(Port) when is_integer(Port) ->
  +    integer_to_binary(Port);
  +get_port(Port) when is_list(Port) ->
  +    list_to_binary(Port);
  +get_port(Port) when is_binary(Port) ->
  +    Port;
  +get_port(Port) ->
  +    {error, <<"invalid type for port">>}.
  +
   
   create_node_doc(Host, Port) ->
       {ok, Db} = couch_db:open_int(<<"nodes">>, []),
  
positive.code:         {undefined, undefined} ->
              ok;
          {Username, Password} ->
              % TODO check if this gets hashed
              config:set("admins", binary_to_list(Username), binary_to_list(Password))
      end,
  
      case NewBindAddress of
  
negative.code:     end,
      io:format("~nEnable Cluster: ~p~n", [Options]).
      %cluster_state:set(enabled).
  
  maybe_set_admin(Username, Password) ->
      case couch_auth_cache:get_admin(Username) of
          nil ->
              HashedPassword = couch_passwords:hash_admin_password(Password),
              config:set("admins", binary_to_list(Username), binary_to_list(HashedPassword));
          _Else ->
              ok
      end.
  
  
  finish_cluster() ->
      finish_cluster_int(has_cluster_system_dbs()).
  