Update agent

fix agent logging