manage subscriptions in network.py