fixed some of the networking library code with ethan