setup network, setup lib