TimW: adding agent side logging
Timw: adding agent side logging