Timw: adding agent side logging