move the network protocol stuff into its own directory