implemented some more network stuff