WIP commit: start to deal with non-consistent partitions. all_partitions/1 needs attention though.