improved handling of possibly redundant PWMs.