start of data_matching example, clean up api