updated utils to handle regtest, simnet