setup_io_recording