made socket global