cleaned up agilent. added debug messages to investigate comms issue