dpb erc refactoring