fixed some places where i was receiving on an empty socket