add support for generic partitions