initial attempt at implementing a bare-bones network interface