modified lightcone IO based on John's recommended loop structure. loop ovr replicates is now outer loop and we write only three times per output