stupid socket check