PDL utils and helpers