rewrote loadFile to mapFile/unmapFile (use mmap based I/O)