flush photon output file, fix propagation signature