improved erc setup