fixed new_data access in data_io.py