anchor.diff:      {ok, ServiceInfo} = tts_service:get_info(ServiceId),
       Connection = connect_to_service(ServiceInfo),
       {ok, CmdMod} = get_cmd_module(request,ServiceInfo),
  -    create_command_list(CmdMod,UserInfo,Connection,State).
  +    create_command_list_and_update_state(CmdMod,UserInfo,ServiceInfo,Connection,State).
   
       %% ok = close_connection(Connection,ServiceInfo),
       %% send_reply(Result ,State).
  
positive.code:           action = undefined,
            client = undefined,
            service_id = undefined,
            service_info = undefined,
            user_info = undefined,
            token = undefined,
            params = undefined,
  
negative.code:      } = UserInfo,
      {ok, IoList} = CmdMod:render([{user, User },{uid, Uid},{gid, Gid},{home_dir, HomeDir}]), 
      CmdList = binary:split(list_to_binary(IoList),[<<"\n">>],[global]),
      {ok, State#state{cmd_list=CmdList, connection = Connection, con_type = ConType}};
  create_command_list_and_update_state(_Mod, _Info, #{con_type := ConType}, _Connection, State) ->
      {ok, State#state{error = connection_or_cmd_error, con_type = ConType}}. 
  
  trigger_next_command() ->
      gen_server:cast(self(),execute_cmd).
  