lima/ppir: rework select conditions