add some logging to agent to help diagnose start up issues