better AgentId class
parameters in log by reference