added some functionality to separate modes by different criteria in prune_network.py