anchor.diff:  init(Options) ->
   	AccessKey 	= proplists:get_value(db_username, Options, os:getenv("AWS_ACCESS_KEY_ID")),
   	SecretKey	= proplists:get_value(db_password, Options, os:getenv("AWS_SECRET_ACCESS_KEY")),
  -	
  +    Endpoint = proplists:get_value(db_host, Options, "dynamodb.us-east-1.amazonaws.com"),
  +
   	%% startup dependencies.  some of these may have already been started, but that's ok.
   	inets:start(),
   	ssl:start(),
   	%%lager:start(),
   	application:start(ibrowse),
  -	
  -	
  +
  +
   	%% init initial credentials.  note that these will be refeshed automatically as needed
   	ddb_iam:credentials(AccessKey, SecretKey),
   	{'ok', Key, Secret, Token} = ddb_iam:token(129600),  %% 129600 is the lifetime duration for the token
  -	ddb:credentials(Key, Secret, Token),
  +	ddb:credentials(Key, Secret, Token, Endpoint),
   
   	init_tables(),
       {ok, undefined}.
  
positive.code: 	BinModels = [ erlang:list_to_binary(X) || X <- Models],
  	Create = BinModels -- Tables,
  	init_models(Create).
  	
  init_models([]) ->
  	ok;
  init_models([Model | Tail]) ->
  
negative.code: 	%%Attrs = (boss_record_lib:dummy_record(Model)):attribute_names(),
  	ddb:create_table(Model, ddb:key_type(<<"id">>, 'string'), 10, 10),
  	init_meta_entry(Model).
  
  init_meta_entry(Model) when is_binary(Model)->
  	ddb:put(Model, [{<<"id">>, <<"metadata">>, 'string'},
  					{<<"counter">>, <<"0">>, 'number'}]).
  