set up data logging