added base code for PL
PL cleanup; layout addition