beginning of less bad interface for mmap