capture: safe

do not get data and size in main thread one by one, the may change
misc:  forgotten test files. remove debug msg