improve socket receive message