cleanups of _expose_idx, next we need memmap.resize to work