most erc errors fixed