socket not working