added parameter for multiple networks