moved network initializtion to its own process