move the network sink functions into their own module