metis partitioning + reader and writer fixes