fix some networking issues