automatically connect to different node if cant connect to first one

simpler and foolproof implementation