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:     ],
  
      Host = proplists:get_value(host, Options),
      Port = get_port(proplists:get_value(port, Options, 5984)),
  
      Url = binary_to_list(<<"http://", Host/binary, ":", Port/binary, "/_cluster_setup">>),
  
      case ibrowse:send_req(Url, Headers, post, Body, RequestOptions) of
  