testing thread_scan.

Need to change lambda types in record members