erc: fixes for connect thing