add logging to collector/query