ppc: difficulty utility functions