scripts for new data format