bug fix to network stuff