clean warnings
implement "safe" ordered partitions