connect to electrum only when necessary