made socket connection to work