infrastructure for data recording