updated networking initialization routine