Plp patter impl

Adapted to work with last plp changes