use tee to log data extraction