almost feature complete and not too broken version of the partitioner is in place.