updated to work with latest pdl changes