fixed some network stuff