at least the data and index files are being written corretly.. ugh.