fixes all over. indexing still needs fixing for pagefiles