wrote networking stubs and partial implementation