remote.erc: add check for whether erc is loaded