This is inconsistent. #L16 defaults to testnet and #L19 defaults to main net. I'm not very happy about how I chose to store network at all. Ideas?