connection and TESTNET / PRODNET check during startup