PLD: script cleanup