[pl] generalize a bit