refine detect tool, support atc stream.