tweaked: added initial mmap of output file.