fixed some networking mistakes