add socket import in server script