anchor.diff:                                      });
           _ -> void
       end,
  -    em_logger:info("COUNT: ~w", [do_count_users(State)]),
  +    %%em_logger:info("COUNT: ~w", [do_count_users(State)]),
       {ok, State}.
   
   %%--------------------------------------------------------------------
  
positive.code: 
  
  seconds_to_timestamp(Seconds) ->
    {timestamp, bson:secs_to_unixtime(Seconds)};
  seconds_to_timestamp(_) ->
    {timestamp, {0, 0, 0}}.
  
  timestamp_to_seconds({timestamp, Timestamp}) ->
    bson:unixtime_to_secs(Timestamp);
  timestamp_to_seconds(_) ->
    0.
  
negative.code:        name = maps:get(<<"name">>, Map, <<"">>),
         uniqueId = maps:get(<<"uniqueId">>, Map, <<"">>),
         status = maps:get(<<"status">>, Map, <<"">>),
         lastUpdate = timestamp_to_seconds(maps:get(<<"lastUpdate">>, Map, null)),
         positionId = maps:get(<<"positionId">>, Map, 0)
        };
  from_map(position, Map) ->
      #position{
         id = objectid_to_id(maps:get(<<"_id">>, Map, 0)),
         type = maps:get(<<"type">>, Map, <<"">>),
         protocol = maps:get(<<"protocol">>, Map, <<"">>),
         serverTime = timestamp_to_seconds(maps:get(<<"serverTime">>, Map, null)),
         deviceTime = timestamp_to_seconds(maps:get(<<"deviceTime">>, Map, null)),
         fixTime = timestamp_to_seconds(maps:get(<<"fixTime">>, Map, null)),
         deviceId = objectid_to_id(maps:get(<<"deviceId">>, Map, 0)),
         outdated = maps:get(<<"outdated">>, Map, false),
         valid = maps:get(<<"valid">>, Map, false),
  