short term solution to some tests. needs workon closing mmaped files