moved network construction stuff