updated network.py to combine all the other ones