solving polling socket
new version