anchor.diff:              pang -> ?Info("node ~p down!~n", [CMNode])
               end || CMNode <- CMNodes]
       end,
  -    case imem_sup:start_link(StartArgs) of
  -    	{ok, Pid} ->
  -            % imem_server ranch listner is supervised by ranch so not
  -            % added to supervison tree, started after imem_sup
  -            % successful started to ensure booting complete of imem
  -            % before listening for connections
  -            %apps_start([asn1, crypto, public_key, ssl, ranch]),
  -            case application:get_env(tcp_server) of
  -                {ok, true} ->
  -                    {ok, TcpIf} = application:get_env(tcp_ip),
  -                    {ok, TcpPort} = application:get_env(tcp_port),
  -                    {ok, SSL} = application:get_env(ssl),
  -                    Pwd = case code:lib_dir(imem) of {error, _} -> "."; Path -> Path end,
  -                    imem_server:start_link([{tcp_ip, TcpIf},{tcp_port, TcpPort}, {pwd, Pwd}, {ssl, SSL}]);
  -                _ -> ?Info("imem TCP is not configured to start!~n")
  -            end,
  -            {ok, Pid};
  -    	Error -> Error
  -    end.
  +    SupRes = case imem_sup:start_link(StartArgs) of
  +                 {ok, Pid} ->
  +                     % imem_server ranch listner is supervised by ranch so not
  +                     % added to supervison tree, started after imem_sup
  +                     % successful started to ensure booting complete of imem
  +                     % before listening for connections
  +                     %apps_start([asn1, crypto, public_key, ssl, ranch]),
  +                     case application:get_env(tcp_server) of
  +                         {ok, true} ->
  +                             {ok, TcpIf} = application:get_env(tcp_ip),
  +                             {ok, TcpPort} = application:get_env(tcp_port),
  +                             {ok, SSL} = application:get_env(ssl),
  +                             Pwd = case code:lib_dir(imem) of {error, _} -> "."; Path -> Path end,
  +                             imem_server:start_link([{tcp_ip, TcpIf},{tcp_port, TcpPort}
  +                                                     ,{pwd, Pwd}, {ssl, SSL}]);
  +                         _ -> ?Info("imem TCP is not configured to start!~n")
  +                     end,
  +                     {ok, Pid};
  +             	Error -> Error
  +             end,
  +    ?Info(" IMEM STARTED~n", []),
  +    ?Info("---------------------------------------------------~n", []),
  +    SupRes.
   
   % LAGER Disabled in test
   -ifndef(TEST).
  
positive.code: start(_Type, StartArgs) ->
      % cluster manager node itself may not run any apps
      % it only helps to build up the cluster
      case application:get_env(erl_cluster_mgrs) of
          {ok, []} -> ?Info("cluster manager node(s) not defined!~n");
          {ok, CMNs} ->
  
negative.code:     application:stop(?MODULE).
  
  stop(_State) ->
  	?Info("SHUTDOWN IMEM~n", []),
  	ok.
  
  % start stop query imem tcp server
  