updated utils to handle regtest, simnet

refactored the if-else to assign active network params
and removed the switch-case