another fix for socket