updates and bugfixes to partitioning