better logging on the agent side