getting prepared for socket wrapper