rename result to detectorresult, moved collector task to client module