beginnings of rLayerPAP pkg