automatically connect to main node