removed socket testing code