[#1] pdft utilities refactoring