first pass at migrating the network stack