might have fixed a small bug with socketbuffer