agents logging fixed